#include "stdafx.h"
#include "BgLayer.h"
#include "game_path.h"

extern HGE* hge;

CBgLayer::CBgLayer()
{
    CString cstrTilesXMLPath = game_path::getGamePath();
    cstrTilesXMLPath += L"mapsave.xml";
    m_main_map.init(hge, cstrTilesXMLPath);
}

CBgLayer::~CBgLayer()
{

}

void CBgLayer::Update()
{
    m_main_map.update();
}

void CBgLayer::Render()
{
    m_main_map.render();
}

tiles_map* CBgLayer::GetMap( )
{
    return &m_main_map;
}
